﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CustomPager.ascx.cs" Inherits="Controls_CustomPager" %>
<%@ Register Assembly="Symbonix.Library" Namespace="Symbonix.Library.Web.UI" TagPrefix="ucc" %>
<ucc:Pager ID="uccPager" runat="server"  >
    <PagerTemplate>
        <table>
            <tr>
                <td><asp:Label ID="PageText" runat="server" ></asp:Label></td>
                <td><asp:Button ID="GoFirstPage" runat="server" Text="<<" /></td>
                <td><asp:Button ID="GoPrevPage" runat="server" Text="<" /></td>
                <td>
                    <asp:Repeater ID="PageLinks" runat="server">
                        <ItemTemplate>
                            <asp:LinkButton ID="PageLink" runat="server" CommandName="PageChange" Text='<%# Container.DataItem.ToString() %>' CommandArgument='<%# Container.DataItem.ToString() %>'></asp:LinkButton>
                        </ItemTemplate>
                    </asp:Repeater>
                </td>
                <td><asp:Button ID="GoNextPage" runat="server" Text=">" /></td>
                <td><asp:Button ID="GoLastPage" runat="server" Text=">>" /></td>
                <td>
                    <asp:DropDownList ID="PageSizeSelector" runat="server" AutoPostBack="true">
                        <asp:ListItem Text="10" Value="10"></asp:ListItem>
                        <asp:ListItem Text="20" Value="20"></asp:ListItem>
                        <asp:ListItem Text="30" Value="30"></asp:ListItem>
                        <asp:ListItem Text="40" Value="40"></asp:ListItem>
                        <asp:ListItem Text="50" Value="50"></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
    </PagerTemplate>
</ucc:Pager>
